<?php
header('content-type:application/json;charset=utf8');
	require_once 'login.php';
	$conn=new mysqli($hn,$un,$pw,$db);
	if($conn->connect_error) die($conn->connect-error);
	$query="select * from users";
	$userName=$_REQUEST['userName'];
	$password=$_REQUEST['password'];
	$conn->query('set names utf8');
	$result=$conn->query($query);
	if(!$result) die($conn->error);
	$rows=$result->num_rows;
	$results=array();
	while($row=$result->fetch_array(MYSQLI_ASSOC)){
		
		$results[]=$row;
	}
	$s=json_encode($results,JSON_UNESCAPED_UNICODE);
	echo $userName;
	$result->close();
	$conn->close();
?>